package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CBufferStopMessage extends AbstractS2CMessage {
	private String playerId;
	private int bufferId;
	
	
	public S2CBufferStopMessage(String playerId, int bufferId) {
		super();
		this.playerId = playerId;
		this.bufferId = bufferId;
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_STOP_BUFFER;
	}

	@Override
	protected void writeMessage() {
		writeString(playerId);
		writeInt(bufferId);
	}

}
